package com.castudio.Mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.castudio.Entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
//import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.toolkit.Constants;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 小陈同学
 * @since 2022-12-14
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    List<User> getAllUserByPage(Integer page, Integer size,String realname);
    Long getTotal(String realname);
    void updateUser(String fileUrl,String dormnum,String gender,String nickname,
                String phone,String realname,String stunum,String openid);
    void insertUserInfo(String time, String openid);
    User getUserInfo(String openid);
    void updateLogin(String openid, String time);

}
